package java_chapter5;

import java.util.Scanner;

public class fenjie {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		System.out.println("please input the  number:");
		int num = in.nextInt();
		System.out.printf("%d =",num);
		int i = 2;
		while(i<=Math.sqrt(num)) {
			if(num%i==0) {
				System.out.print(i+"*");
				num /= i;
				i=2;
			}
			else {
				i++;
			}
		}
		System.out.println(num);

		}

}
